/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sales.generics.client.log;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author v
 */
public class LogBrowser {

    public static void writeConsole(String message, Exception e) {
        Logger log = Logger.getLogger("Info Logger: ");
        log.log(Level.INFO, message, e);
    }

    public static native void write(String value)/*-{
     console.log(value);
     }-*/;

    public static native void alert(String value)/*-{
     alert(value);
     }-*/;
}
